package billingServer;

import java.rmi.Remote;
import java.rmi.RemoteException;
import server.data.Bid;

/**
 *
 * @author Group 95
 */
public interface IBillingServerSecure extends Remote
{
    public PriceSteps getPriceSteps() throws RemoteException;
    
    public void createPriceStep(double startPrice, double endPrice, double fixedPrice, double variablePricePercent) throws RemoteException;
    
    public void deletePriceStep(double startPrice, double endPrice) throws RemoteException;
    
    /**
    * Called by Auctionserver when auction is finished.
    * The bill price gets calculated here
    * @param user Auction owner
    * @param auctionID Auction Id
    * @param price Finishing price
    * @throws RemoteException 
    */ 
    public void billAuction(Bid bid) throws RemoteException;
    
    public Bill getBill(String user) throws RemoteException;
}
